package com.cjg.functionInterface;

import java.util.function.Supplier;

public class demo04 {
    public static void main(String[] args) {
//        Supplier<Integer> objectSupplier = new Supplier<Integer>() {
//            @Override
//            public Integer get() {
//                return 1024;
//            }
//        };
        Supplier<Integer> objectSupplier =()->{System.out.println(111);return 1024; };
                System.out.println(objectSupplier.get());


    }
}
